﻿// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'

import router from './router/index.js'
// 导入vue-resource
import VueResource from 'vue-resource'
Vue.use(VueResource)
// 导入vuex
import Vuex from 'vuex'
Vue.use(Vuex)
// 过滤器filters
import filters from './filters/filters.js'

import store from './state/store.js'

// 引用jquery
import $ from 'jquery'
// 引入bootstrap
import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap/dist/js/bootstrap.min.js'

// 引入quill
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

// 引入css
import './css/default.css'
import './css/default.less'

import './css/postComment.less'

// 引入echarts
import echarts from 'echarts'
Vue.prototype.$echarts = echarts


Vue.use(VueQuillEditor)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: {
    App
  },
  template: '<App/>',

})

//Vue.prototype.isLogin = function(){
//	if(this.$store.state.user == null) {
//					alert("请先登录！");
//					this.$router.push({
//						name: 'login'
//					});
//}}